package com.wx.fresh.business.controller;

import com.wx.fresh.business.vo.businessVo.BusinessAddressVo;
import com.wx.fresh.business.vo.businessVo.BusinessOccupancyVo;
import com.wx.fresh.common.util.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "商家入驻")
@RestController
@RequestMapping("business/occupancy")
public class OccupancyController {

    @ApiOperation(value = "入驻提交申请审核")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "公司名称", required = true, paramType = "form"),
            @ApiImplicitParam(name = "legalName", value = "法定代表人姓名", required = true, paramType = "form"),
            @ApiImplicitParam(name = "certificateType", value = "证件类型", required = true, paramType = "form"),
            @ApiImplicitParam(name = "certificateNumber", value = "证件号码", required = true, paramType = "form"),
            @ApiImplicitParam(name = "certificateImage", value = "证件照片", required = true, paramType = "form"),
            @ApiImplicitParam(name = "licenceNumber", value = "许可证注册号", required = true, paramType = "form"),
            @ApiImplicitParam(name = "businessForm", value = "许可经营形式", required = true, paramType = "form"),
            @ApiImplicitParam(name = "businessPlace", value = "许可经营场所", required = true, paramType = "form"),
            @ApiImplicitParam(name = "businessRange", value = "许可经营范围", required = true, paramType = "form"),
            @ApiImplicitParam(name = "dateOfIssue", value = "发证日期", required = true, paramType = "form"),
            @ApiImplicitParam(name = "phone", value = "联系电话", required = true, paramType = "form"),
            @ApiImplicitParam(name = "accountBank", value = "开户行", required = true, paramType = "form"),
            @ApiImplicitParam(name = "accountNumber", value = "开户账号", required = true, paramType = "form"),
    })
    @PostMapping("occupancy")
    public CommonResult occupancy(BusinessOccupancyVo businessOccupancyVo) {
        return null;
    }

    @GetMapping("findBusinessAddress")
    @ApiOperation(value = "商家地址省市查询", response = BusinessAddressVo.class)
    public CommonResult findBusinessAddress() {
        return null;
    }
}
